<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
    <link rel="shortcut icon" href="favicon.ico"/>
    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet"/>
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet"/>
    <link href="../../css/plugins/iCheck/custom.css" rel="stylesheet"/>
    <link href="../../css/animate.css" rel="stylesheet"/>
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet"/>
    <!-- jqgrid-->
    <link href="../../css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet"/>

    <link href="../../css/animate.css" rel="stylesheet"/>
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet"/>
    <!-- Sweet Alert -->
    <link href="../../css/plugins/sweetalert/sweetalert.css" rel="stylesheet"/>
    <link href="../../css/animate.css" rel="stylesheet"/>
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet"/>
<style type="text/css">
    .control-label{
        width: 100px;
        margin-left: 50px;
        margin-top: 10px;
    }
</style>
</h:head>

<h:body>
    <h:form>
        <div class="wrapper wrapper-content animated fadeInRight">

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>添加学生信息</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
                                </a> <a class="dropdown-toggle" data-toggle="dropdown"
                                        href="table_basic.html#"> <i class="fa fa-wrench"></i>
                            </a> <a class="close-link"> <i class="fa fa-times"></i>
                            </a>
                            </div>
                        </div>
                        <div class="ibox-content">

                            <div class="form-group">
                                <label class="col-sm-2 control-label">学号：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentId}" type="text" class="form-control id" onblur="checkStudentId()" name="id" id="id"/>
                                    <br/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">姓名：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentName}" type="text" class="form-control name" onblur="checkName()" name="name" id="name"/>
                                    <br/>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentGender}" type="text" class="form-control" name="gender" id="gender"/>
                                    <br/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">出生日期：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentBirth}" type="text" class="form-control" name="birth" id="birth"/>
                                    <br/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">学院：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentSchool}" type="text" class="form-control" name="school" id="school"/>
                                    <br/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">专业：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentMajor}" type="text" class="form-control" name="major" id="major"/>
                                    <br/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">班级：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentClass}" type="text" class="form-control" name="class" id="class"/>
                                    <br/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">电话：</label>
                                <div class="col-sm-10">
                                    <h:inputText value="#{admin.studentPhone}" type="text" class="form-control phone" onblur="checkPhone()" name="phone" id="phone"/>
                                    <br/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <h:commandButton action="#{admin.addStudent()}" class="btn btn-primary"
                                                     type="submit" id="submit" value="保存" style="margin-left: -120px"/>
                                    <h:commandButton class="btn btn-gray" type="reset" value="取消" style="margin-left: 20px"/>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </h:form>
    <!-- 全局js -->
    <script type="text/javascript" src="../../js/jquery.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/select-course.js"></script>
    <script type="text/javascript" src="../../js/plugins/sweetalert/sweetalert.min.js"></script>
    <script type="text/javascript" src="../../js/content.js?v=1.0.0"></script>
    <script type="text/javascript" src="../../js/plugins/peity/jquery.peity.min.js"></script>
    <script type="text/javascript" src="../../js/plugins/jqgrid/i18n/grid.locale-cn.js?0820"></script>
    <script type="text/javascript" src="../../js/plugins/jqgrid/jquery.jqGrid.min.js?0820"></script>
    <!-- layerDate plugin javascript -->
    <script type="text/javascript" src="../../js/plugins/layer/laydate/laydate.js"></script>
    <!-- iCheck -->
    <script type="text/javascript" src="../../js/plugins/iCheck/icheck.min.js"></script>
    <script src="../../js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="../../js/app.js" type="text/javascript"></script>
    <script src="../../js/select-course.js" type="text/javascript"></script>

</h:body>

</html>